import subprocess
import time
def ftime():
    t = time.localtime()
    # ('20220614095527', '2022-06-14 09:55:27')
    return (f'{t.tm_year}{t.tm_mon:02}{t.tm_mday:02}{t.tm_hour:02}{t.tm_min:02}{t.tm_sec:02}', f'{t.tm_year}-{t.tm_mon:02}-{t.tm_mday:02} {t.tm_hour:02}:{t.tm_min:02}:{t.tm_sec:02}')

sh='ls ./workflow/para*'
subprocess.run(sh, shell=True, stderr=subprocess.PIPE)
print(ftime())